package com.rabbitmq.controller;

import com.alibaba.fastjson.JSON;
import com.rabbitmq.util.Producer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.UUID;

/**
 * @Author： yu.Tan
 * @Date: 2020/8/20 15:08
 * @Description:
 */
@Controller
public class SendController {

    @Autowired
    Producer producer;

    @GetMapping("/sendConfirm")
    private @ResponseBody
    String sendConfirm() {
        producer.sendMessage();
        return "OK,sendConfirm" ;
    }
}
